package com.shujia.wyh.day13.homework.drinkdemo;

public class Cola extends Drink {
    private String brand;

    public Cola() {
    }

    public Cola(int volume, String name, String brand) {
        super(volume, name);
        this.brand = brand;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    @Override
    public void show() {
        super.show();
        System.out.println("名称：" + getName());
        System.out.println("品牌：" + brand);
        System.out.println("容量：" + getVolume());
    }
}
